<template>
  <div class="window_shade">
    <div class="car_body">
      <div class="car_top_set">
        <span class="car_title">{{
          depro.title == '' ? 'no title' : depro.title
        }}</span>
        <div class="car_unit">
          <svg class="uni_svg" id="setting">
            <g>
              <circle class="st0" cx="80" cy="200" r="40" />
              <circle class="st0" cx="320" cy="200" r="40" />
              <circle class="st0" cx="200" cy="200" r="40" />
            </g>
          </svg>
          <svg class="uni_svg" id="link_info">
            <g>
              <circle class="st0" cx="80" cy="200" r="40" />
              <circle class="st0" cx="320" cy="200" r="40" />
              <circle class="st0" cx="200" cy="200" r="40" />
            </g>
          </svg>
        </div>
      </div>
      <div class="car_content"><slot></slot></div>
    </div>
  </div>
</template>

<script setup>
let depro = defineProps(['title', 'settingLink']);
</script>

<style scoped lang="scss">
.window_shade {
  display: block;

  overflow: scroll;

  z-index: 1000;

  background-color: #0000001b;

  min-width: 100vw;
  min-height: 100vh;

  top: 0;
  left: 0;
}
.car_body {
  min-width: 600px;
  min-height: 400px;

  display: table;

  margin: 50px auto 50px auto;

  background-color: #fff;
  box-shadow: 0 0 14px -1px #000000ff;
}
.car_top_set {
  width: 100%;
  height: 40px;

  background-color: blanchedalmond;
}
.car_title {
  line-height: 40px;
  margin: 0 5px;
}
.car_unit {
  width: 42px;
  height: 100%;
  padding: 0 5px;
  float: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.uni_svg {
  cursor: pointer;
  width: 400px;
  height: 400px;
  zoom: 0.04;
}
#setting {
  zoom: 0.04;
}
#link_info {
  transform: rotate(90deg);
}
.car_content {
  padding: 5px;
}
</style>
